<?php
/**
 * Centrum Logowania
 * Konfiguracja aplikacji
 *
 * @category    ServiceLogin
 * @package     Config
 * @author      Krzysztof Kardasz <krzysztof.kardasz@eurozet.pl>
 * @copyright   Copyright (c) 2011 Eurozet Sp. z o. o.
 * @version     1.0 $Id: application.php 3724 2012-03-23 11:14:24Z kkardasz $
 */
return array(
    'phpSettings' => array(
        'session' => array(
            'save_path'    => APPLICATION_PATH . '/../tmp/session'
        ),
        'register_globals' => 0,
        'magic_quotes_gpc' => 0,
        'display_startup_errors' => 0,
        'display_errors'         => 0,
        'allow_url_fopen'        => 1
    ),
    'includePaths' => array(
        'library' => APPLICATION_PATH . '/../library'
    ),
    'bootstrap' => array (
        'path' => APPLICATION_PATH . DIRECTORY_SEPARATOR . 'Bootstrap.php',
        'class' => 'Bootstrap'
    ),
    'appnamespace' => 'Application',
    'resources' => array (
        'frontController' => array (
            'moduleDirectory' => APPLICATION_PATH . '/modules',
            'defaultControllerName' => 'index',
            'defaultAction' => 'index',
            'params' => array (
                'prefixDefaultModule' => false,
                'displayExceptions' => 1
            ),
            'plugins' => array(
                'Application_Plugin_Auth'
            )
        ),
        'log' => array(
            'stream' => array (
                'writerName' => 'Stream',
                'writerParams' => array(
                    'stream' => APPLICATION_PATH . '/../tmp/log/application.log',
                    'mode' => 'a'
                )
            )
        ),
        'modules' => array(),
        'cachemanager' => array(
            'partial' => array (
                'frontend' => array (
                    'name' => 'Output',
                    'customFrontendNaming' => false,
                    'options' => array (
                        'lifetime' => 172800,
                        'automatic_serialization' => true
                    )
                ),
                'backend' => array(
                    'name' => 'File',
                    'customBackendNaming' => false,
                    'options' => array(
                        'cache_dir' =>  APPLICATION_PATH . '/../tmp/cache/partial',

                    )
                ),
                'frontendBackendAutoload' => false
            ),
            'db' => array (
                'frontend' => array (
                    'name' => 'Output',
                    'customFrontendNaming' => false,
                    'options' => array (
                        'lifetime' => 172800,
                        'automatic_serialization' => true
                    )
                ),
                'backend' => array(
                    'name' => 'File',
                    'customBackendNaming' => false,
                    'options' => array(
                        'cache_dir' =>  APPLICATION_PATH . '/../tmp/cache/db',

                    )
                ),
                'frontendBackendAutoload' => false
            )
        ),
        'layout' => array (
            'layoutPath' => APPLICATION_PATH . '/layouts/scripts',
            'layout' => 'layout'
        ),
        'view' => array(
            'assign' => array(
                'gfx_uri' => 'http://gfx.konto.eurozet.pl'
            )
        ),
        'db' => array (
            'adapter' => 'PDO_MYSQL',
            'isDefaultTableAdapter' => true,
            'params' => array (
                'host' => 'mysql',
                'username' => 'servicelogin',
                'password' => 'voowiD9cei4Niecie1',
                'dbname'   => 'servicelogin',
                'charset'  => 'utf8',
            ),
            'defaultMetadataCache' => 'db'
        ),
        /*
        'mail' => array(
            'transport' => array (
                'type' => 'smtp',
                'host' => 'localhost',
                'register' => true
            ),
            'defaultFrom' => array(
                'email' => 'radiozet@radiozet.info',
                'name'  => 'Centrum Logowania Eurozet'
            ),
            'defaultReplyTo' => array(
                'email' => 'radiozet@radiozet.info',
                'name'  => 'Dział Techniczny Eurozet'
            )
        ),
        */
        'router' => array(
            'routes' => array (
                'transport' => array (
                    'route' => '/transport.html',
                    'defaults' => array (
                        'controller' => 'transport',
                        'action' => 'index'
                    )
                ),
                'haslo_sms' => array (
                    'route' => '/haslo-sms/:user_id/:code',
                    'defaults' => array (
                        'controller' => 'reminder',
                        'action' => 'sms'
                    )
                )
            )
        )
    )
);